class LoggedController < Controller
  def go e
    if user = AppEngine::Users.current_user
      e.data['user'] = User.for(user)
      super
    else
      to = AppEngine::Users.create_login_url(e.url)
      e.redirect to
    end
  end
end
